Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix MMal no buffers available. #645

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dinapappor
Copy link

@dinapappor dinapappor commented Sep 16, 2020

This fixes picamera.exc.PiCameraMMALError: no buffers available: Resource temporarily unavailable when dealing with raw mmalobj and overlays.

What seems to happen is that we try to send buffers all the time instead of only doing it on port that is an output. This fixes it for me and I have not seen any issues as a result.

Let me know if this is good enough for inclusion or if you want me to do additional digging.

(For some reason I was not able to monkeypatch this from my code, probably because my python is somewhat limited)

@xlla
Copy link

xlla commented Dec 6, 2020

it work!

@rschaer
Copy link

rschaer commented Jun 22, 2021

This fixed all (no buffer available) error messages when updating dynamic overlays in picamera for me. Saw other solutions suggesting switching between two layers with the same image, and alternatingly removing/adding the overlays on updates. This seems way less hacky. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants